home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFBIND
/
VQCOLOR.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
1KB
|
46 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*------------------------------------------------------------------------
;* Inquire color representation.
;*------------------------------------------------------------------------
globl _vq_color
_vq_color:
; .cargs #8,handle.w,color.w,setflag.w,rgb.l
handle = 8
color = 10
setflag = 12
rgb = 14
link a6,#-8 ;* Allocate intout[4].
; VContrl #26,,,#2
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
move.w #2,-(sp) ; contrl[3]
subq.l #2,sp ; contrl[2]
clr.w -(sp) ; contrl[1]
move.w #26,-(sp) ; contrl[0]
subq.l #4,sp ;* -> ptsout
pea -8(a6) ;* -> intout
subq.l #4,sp ;* -> ptsin
pea color(a6) ;* -> intin
pea 16(sp) ;* -> contrl
move.l sp,d1
jsr vditrap
move.l rgb(a6),a0 ;* Return rgb array...
move.l -6(a6),(a0)+ ;* rgb[0]=intout[1], rgb[1]=intout[2]
move.w -2(a6),(a0) ;* rgb[2]=intout[3]
unlk a6
rts
end